package com.gin.pixiv.response.series

import com.fasterxml.jackson.annotation.JsonAlias
import com.gin.pixiv.enums.AiType
import com.gin.pixiv.enums.XRestrict
import com.gin.pixiv.response.base.WorkSeries
import java.time.ZonedDateTime

/**
 * @author BX-Gin
 * @from 2024/2/26 10:09
 */
class NovelSeries : WorkSeries() {
    /**
     * AI类型
     */
    var aiType: AiType? = null
    var cover: Cover? = null

    var createdTimestamp: ZonedDateTime? = null
    var displaySeriesContentCount: Int? = null
    var genreId: Int? = null
    var language: String? = null
    var lastPublishedContentTimestamp: ZonedDateTime? = null

    /**
     * 头像链接
     */
    var profileImageUrl: String? = null
    var publishedContentCount: Int? = null
    var publishedReadingTime: Int? = null
    var publishedTotalCharacterCount: Int? = null
    var publishedTotalWordCount: Int? = null

    /**
     * 分享文本
     */
    var shareText: String? = null

    /**
     * 标签
     */
    var tags: List<String>? = null

    var updatedTimestamp: ZonedDateTime? = null

    var userName: String? = null

    /**
     * 限制级别
     */
    @set:JsonAlias("xRestrict")
    var xRestrict: XRestrict? = null

    companion object {
        class Cover {
            var urls: HashMap<String, String>? = null
        }
    }
}